<template>
  <div class="header">
    <router-link to="/">
     <span class="header-back">
        <i class="iconfont icon-topleftarror"></i>
      </span>
    </router-link>
    <div class="title">{{title}}</div>
  </div>
</template>
<script>
export default {
  name: 'DetailHeader',
  props: {
    title: String
  },
  mounted () {
    window.addEventListener('scroll', function () {
      let top = document.documentElement.scrollTop
      if (top < 60) {

      }
    })
  }
}
</script>
<style lang="stylus" scoped>
  @import '~stylus/varibles.styl'
  .header
    position: relative
    overflow: hidden
    height: $headerHeight
    line-height: $headerHeight
    text-align: center
    color: #fff
    background: $bgColor
    font-size: .32rem
    .header-back
      position: absolute
      top: 0
      left: 0
      width: .64rem
      text-align: center
      font-size: .4rem
      color: #fff
</style>
